package com.da.demo.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.da.demo.security.entity.DailyRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色表(DailyRole)表数据库访问层
 *
 * @author makejava
 * @since 2025-01-20 14:49:19
 */
@Mapper
public interface DailyRoleMapper extends BaseMapper<DailyRole> {


    int  queryByRoleName(@Param("roleName") String roleName);

    int createRole(@Param("dailyRole") DailyRole dailyRole);

    List<DailyRole> queryPage(@Param("offset") int offset, @Param("pageSize") int pageSize);

    int selectCount();

    int queryCountByCondition(@Param("field")String field,@Param("field1") String field1);

    DailyRole queryById(@Param("roleId") String roleId);

}

